Minor function code reordering to sort methods alphabetically in godoc.