active css class put correctly on sorting selector