[RFC 4/5] kernelbase/expansion: Implement sortkey expansion