Implement assignment sorting
Get rid of unused stuff in assignments index