Easy way to sort an element's children based on a constant transform