Support a new sorting option for better error messaging