Make classes update in sort element