Changed query histories order to name ascending.

from updated_at descending.