[FORWARD PORT] LRDOCS-1180 Sort

This is a forward port of https://github.com/brianchandotcom/liferay-plugins-ee/pull/9271