Sorting problem in mongoose while sorting through query parameter
Summary The issue at hand is a sorting problem in a Mongoose query where the data is not being sorted correctly when a sort query parameter is provided. The code works fine when fetching normal data or data based on conditions like less than or greater than, but fails to sort the data when the … Read more