Wired up sorting directive