fix doc sorting