Allow method chaining on MessageBag->setFormat. Closes #1580.
added array_sort helper that is short-cut into collection sortBy.