Improved sorting when there's no conditions about keys.