Some fixes
Change everything to object, instead of index, and now order by
functionality works fine
Person functionality now works correctly