Unreal Engine 4 - Sorting by Arbitrary Properties

When creating the File Manager and Inventory screens for Waves² I found myself needing to sort lots of arrays of various types by largely arbitrary properties. I adapted this snippet to be able to sort arrays of either objects or structs by almost any UProperty within them. You’ll have to implement sorting by structures yourself but this took care of sorting tables full of strings or numerical values. More