Quote Originally Posted by Nick B View Post
Eek, more fiddling and I was using the wrong code. I assumed it was taken from the VALUE but its not its the listing top to bottom:
No, actually it's taken from the column-number across the page when it's displayed.
Since you have non-zero values of "1, 1, 1, 2, 3", your 5th column is the "3", which in your case is the sort-by-price you desired.

Glad you got it working the way you want.