sort documentation, nicer types