Implemented paging of sort tables, so only one is loaded at a time

Change-Id: Ic060adddfa9f70d17567e6e8a3c028b8324faadf