I wanted to fix some stubborn multi-column sorting (e.g. currently-reading books getting separated depending on whether or not they were on the TBR list) and the best way I figured to do it was to combine #currentlyreading and #onreadinglist:
Code:
program:
if $$#percentread >=# 1 && $$#percentread <=# 99
then 'Currently Reading'
elif $#readinglist == 'To Be Read' && $$#percentread ==# 0
then 'To Be Read'
else 'zzz'
fi
But is there a more elegant way to make undefined values sort to the bottom when using A-Z sort?