fix for sorting issue on XDATA projects
Merge pull request #189 from snordt/master

fix for sorting issue on XDATA projects