mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: update software catalog sorting (#36100)
Related to: #35983 Changes: - Updated the sorting of applications on the /software-catalog page to be case-insensitive.
This commit is contained in:
parent
626d2c000b
commit
f592b9d333
1 changed files with 3 additions and 1 deletions
4
website/api/controllers/view-app-library.js
vendored
4
website/api/controllers/view-app-library.js
vendored
|
|
@ -23,7 +23,9 @@ module.exports = {
|
|||
}
|
||||
|
||||
let allApps = sails.config.builtStaticContent.appLibrary;
|
||||
allApps = _.sortBy(allApps, 'name');
|
||||
allApps = _.sortBy(allApps, (app)=>{
|
||||
return app.name.toLowerCase();
|
||||
});
|
||||
// Respond with view.
|
||||
return {
|
||||
allApps,
|
||||
|
|
|
|||
Loading…
Reference in a new issue