Added an extension for sorting the related fields.
Merge branch 'related_sort' into develop