Removed unnecessary dict sort