Arranging elements according to priority is still remaining