Sort docs collection upon initialization.