Added grid sorting based on sortorder and group (parent) sortorder