When using facet pages with fields with numerical data (for example a MODS date field as a string), facet pages will incorrectly re-order values that PHP interprets as integers in an array which causes the corresponding rendering output and links to not be correct.
See attached screenshot
Steps to reproduce
Create some sample records with a field that contains numerical and non-numerical data
Configure a Solr facet page to be created for the field
View the page and note how the numerical data is replaced with incorrect array values and the non-numerical data is correct
Follow the above with the new code, note that everything is hunky dory.