Prevent not allowed sort directions