Sorting OwnedArray for presets alphabetically

I'm trying to build a preset system with a OwnedArray, everything seems to work fine but I don't know how can I sort the presets alphabetically.

I don't understand how to use the sort method with element comparator, can someone explain it to me?

Thanks in advance.