JIRA ISSUE XCOMMONS-602:Add sort options SpaceIndex

Add sorting options on SpaceIndex macro