fix collection sorting