Download & Extend

Sort Handler not sorting as expected

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:

  1. Create a view
  2. Create a PHP sort handler
  3. In the sort code simply enter: return 1;
  4. Check the results
  5. Edit the sort code so that it is now: return -1;
  6. 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...

nobody click here