You're cutting the reference from the sort elements by mapping them. I don't see why we should map them anyway.