Use strcmp for sorting

As per http://stackoverflow.com/questions/18948462/find-alphabetically-first-value-using-php

Change-Id: I18d2b07cbe19dce5898417047502f98b72b5c3da