array_sort ( array anyarray [, descending boolean [, nulls_first boolean ]] ) → anyarraySorts the first dimension of the array. The sort order is determined by the default sort ordering of the array's element type; however, if the element type is collatable, the collation to use can be specified by adding a
COLLATE clause to the array argument.array_sort(ARRAY[[2,4],[2,1],[6,5]]) → {{2,1},{2,4},{6,5}}