Added sorting for subscriptions