fix sort_by :method, fixes #293