Make Type sort stable, hopefully work around bug in hhvm.