The function returns the array of objects sorted in ascending order. If two objects have the same value for the current criterion, it uses the next criterion to determine their order.
-`arr` (`T[]`): The array of objects to be sorted.
-`criteria` (`Array<keyofT|((item:T)=> unknown)>`): The criteria for sorting. This can be an array of object keys or functions that return values used for sorting.