Substituted sort with stable_sort for rule ordering
Merge branch 'TestGroundingWithoutIdManagerForFact' of https://github.com/dave90/DlvGrounder1.git into TestGroundingWithoutIdManagerForFact