Continued the modification in the web application for fixing the filter, tested the changes, as per testing it is not OK. Test other filters for checking if all is good before pushing into git and deploying in pre prod for testing. As per testing, all is OK and working, and the sorting is correct.