safari sort http://stackoverflow.com/a/15507922