Anyone know how to sort ignoring the capitalization of words? What I'm trying isn't working... it alphabetically sorts the capitalized words, then sorts the lowercase words at the end. (ex. returns 'About, Alphabet, aggravate' instead of 'About, aggravate, Alphabet') Thanks in advance for your help! <br>sub compare_document { <br>lc(iwpt_dcr_value('a.document')) cmp lc(iwpt_dcr_value('b.document'));<br>}<br>
Sorry, didn't realize part of my code was stipped out. iw_iterate sort calling perl function
sub compare_document { lc(iwpt_dcr_value('$a.document')) cmp lc(iwpt_dcr_value('$b.document'));}
Thanks, I tried the $ and that didn't make any difference in the generated html. 'Document' is a text field within the container aindex. iw_iterate var='letter' order='sort compare_document' list='dcr.searchIndex.aindex'