https://www.mediawiki.org/wiki/Manual:$wgPagePropsHaveSortkey
Set this to false if you haven't applied the schema update (patch-pp_sortkey.sql) that adds the pp_sortkey column to the page_props table. This is mainly for use by administrators of large wikis who cannot immediately apply the schema updates to their database.