added sorting of the records listing and keeping the selection within session per content type