Improve pocman upper bound sort