Hi,
This seems to be in some way related to your other post about the filtering, but I'm afraid I still don't understand what you are trying to do here. Filtering really has nothing to do with sorting.