Issue 333

I have changed the sortIndex to solve Issue #333.