wocommunity / wolips

wolips
53 stars 53 forks source link

sort entities by name to make the ordering in the migration definite #21

Closed darkv closed 12 years ago

darkv commented 12 years ago

Generating a migration in Entity Modeler includes the entities in an unpredictable order. This is unhandy when using cvs/svn/git/... because recreating the migration will result in a diff output reporting many changes when there aren't. This patch will use TreeMap/TreeSet collections to sort EOEntityTreeNode and EOEntity objects by entity name.

pascalrobert commented 12 years ago

I applied the patch into the WOCommunity fork.