Made the test sorting approach more extensible, so that other funcionalities can access it.
Authored by: d_haase 2009-12-09
Parent: [r612]
Child: [r614]