make $items the first parameter in format_items()

The idea is that $items is in fact the most important value, guaranteed
to be mandatory, whereas $format and $fields could be optional.