Fix failing 1.8.7 travis builds by sorting expected hash keys