Add test that proves the bug
Fixed bug #13421
Updated doc
Replaced the on-liner with a more readable sort function.
Removed unneded bits
Merge pull request #6 from plone/bug13421

Bug 13421