[Front-end] Added Directive to fix the dispaly of the sort.