Add advanced sorting, update readme.