Fix doc sorting