Fixed issue happening during ./ant create-tenant target on some databases (e.g. MySQL) where milliseconds are not stored: the order in which the Component records were selected could be different from the order they were inserted, causing some data loading issues.
Also fixed some commented out code.
Thanks to Rohit Kaushal for the initial version of the patch and to Arun Patidar for the review and support.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641804 13f79535-47bb-0310-9956-ffa450edef68
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641956 13f79535-47bb-0310-9956-ffa450edef68
I revert this, it slipped in because I pressed the wrong button, should not work too late :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641960 13f79535-47bb-0310-9956-ffa450edef68