Of this function, on first glance, I see only 6 lines that are specific to flowints, each only having this SC_RADIX_USER_DATA_FLOWINT. It would seem that it would be possible to clean this up considerably by having just one "sort" function that you pass this SC_RADIX_USER_DATA_FLOWINT value?