order and map local and rest