fixed get grid order for new order types
Merge branch 'master' of https://github.com/kjian279/RISC