updated collection sorting