Allow reverse sort order

Hi,

I created a patch to allow reverse sorting for lib_sort not tested with pl_sort, but should work as well.

Let me know what you think.

Greetings CBke