Sorting And Filtering Objects

I’m wondering how I make a sorting system similar to Fortnite’s system, where you can sort by attributes of each object within.


I think you would have to use JavaScript. You can put data into an array but there’s no built-in sort and I believe the array tools only sorts numbers. I’m no expert with JavaScript but it has many built in methods for sorting.