WIP [HttpFoundation] fix AcceptHeader::__toString() that did not sort the items

WIP

The items should be sorted otherwise the string representation would depend on the order of method calls, e.g. if you called all() before __toString() or not.

When doing so I figured the sort algorithm does not work for items that have the same quality and index (as a test makes use of). Unfortunately it's not easily possible to fix as phps uasort() does not retain the array order even when returning 0.

@jfsimon cc