Fixed the duplicate bug with nested sort