Dana jest tablica:
a - -11
b - 22
c - 7
d - 0

Posortowana tablica w porządku malejącym z użyciem funkcji uasort:
b - 22
c - 7
d - 0
a - -11