sorting and filtering c# versions 1 and 2.