Added an classifying functionality for test cases

using the LINQ order by clause to write the classifying expression.