Large amount of cleanup and sorting in sglib-testing