member sort for better comparing two branches