$.unique will remove duplicate DOM elements, not identical DOM elements. When you try to use it on strings, you get unpredictable behavior and the sorting will (probably) fail.
It's a function intended for internal use by jQuery only, and won't be useful to mere mortals like you and I.