add class to lis which have to be sorted