proper sort order for shares