Service for sorting array, includes JSON API and backoffice