GameMaker (2.3)



You must be logged in to obtain assets


GMSortBy is a companion library for getting the most out of array_sort in an easy-to-read, semantic way. Sort arrays of arrays, structs, and instances by intuitive helpers with support for sorting by multiple criteria, not by opaque-looking custom inline methods.


Sorting a 2D array by column 0 in ascending order:

array_sort(array, sortby_index(0));

Sorting a 2D array by column 0 in ascending order, then column 2 in descending order:

array_sort(array, sortby_indices([0, 2], [true, false]));

Sorting an array of structs by the key "score" in descending order:

array_sort(array, sortby_key("score", false));


See the Wiki section on the official GitHub repository.

End User Licence Agreement (EULA).

Age Rating: 4+


GMS2.3 - Version 1.0.0. Published February 18, 2023

Initial release.

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait