Fixes a bug in the sort() function.
Fixes a bug in sort() function; re-releases.