added functionality to sort page lists by name
all credit due to j0k at stackoverflow