Replace sort inline style with class