attempted to fix sort