Fixed error in finding render order

 - The error cause elements to be ordered by their ID instead of
   their insert order, causing entirely unexpected and wrong
   rendering results.
Merge branch '1.4' of https://github.com/void256/nifty-gui into 1.4
Merge pull request #189 from mkaring/1.4

Fixed error in rendering order