Adding the indexing at post time so that we can sort by different fields