Remove sorting the array and just filter