SortedKeySet: added support for 1,0,-1 sort directions