Add smart sorting to the select dropdown directive that sorts active items on top