sort members
Manual backport of main driver