Sort attribute lists returned by help and doc methods