Backport user graphs sorting fix to 0.9.x

refs #209 #868