Posted by G0dwin on February 7, 2012 at 6:30am
2 followers
Jump to:
| Project: | Views PHP |
| Version: | 7.x-1.x-dev |
| Component: | Sort Handler |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
The sort handler seems to choose its own sorting algorithm and completely ignores whatever I return. As a test case I did the following:
- Create a view
- Create a PHP sort handler
- In the sort code simply enter: return 1;
- Check the results
- Edit the sort code so that it is now: return -1;
- Check the results
Expected result: 6 should be in reverse order from 4.
Actual result: 4 = 6
Nothing I put into the 'sort code' seems to have any effect on the output but removing the handler results in a different sort order.
Comments
#1
Have a look in #1178170: Can't sort
I have similar problem and it's quiet hard to solve it without documentation...