Sorting numbers

I wanted to sort my dimension to smallest number the largest number having a little trouble with doing the

Ex. if the block is 5.000 x 2.000 x 1.500 I would like to 1.500 x 2.000 x 5.000 in custom properties

SolidworksApi macros