Low Alphabet sort parameter not working
There is something going wrong when the data is outputted. I'm working with eecms 2.7.1 and Low Alpahbet 1.1.0
This is the tag I'm using with low alphabet:
{exp:low_alphabet:entries
channel="artists"
alpha_filter="z"
alpha_field="artists_lastname"
orderby="artists_lastname"
sort="desc"
dynamic="no"
disable="category_fields|member_data"
paginate="bottom" }
When I output the parameters in the _channel_entries function after line 503 in pi.low_alphabet.php I get the following:
Array
(
[low_alphabet] => yes
[fixed_order] => 21460|22086
[orderby] =>
[sort] =>
[dynamic] => no
[paginate] => bottom
)
However Low alphabet is not sorting correctly. The output of the tag I'm using is the following:
ZAMAN (artists_lastname)
ZOETE (artists_lastname)
Which is not desc, as specified in the parameter, it is asc. If I copy paste the used parameters (which I outputted above) in a regular channel:entries tag in the same template I get:
{exp:channel:entries
low_alphabet="yes"
fixed_order="21460|22086"
orderby=""
sort=""
dynamic="no"
paginate="bottom"}
ZOETE (artists_lastname)
ZAMAN (artists_lastname)
This is correct as it is sorting desc. Somehow when used in the low alphabet tag it is always sorted ascending.
Replies
Low 28 Oct 2013 11:01
Can't seem to reproduce this (EE 2.7.2, LA 1.1.0). Can you try clearing EE's cache and see if that helps?
Stenvdb 28 Oct 2013 11:35
I've cleared all caches, still the same result.
Low 28 Oct 2013 11:54
I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.
Low 28 Oct 2013 15:07
Bug found! To fix, for Low Alphabet v1.1.0, in pi.low_alphabet.php, go to line #492. Above that, add a line that says:
...and that should fix it.