data: Ensure we add the contains keys in a particular order

If we don't sort the data, the values can reorder changing the
signatures meaning we get confused builds and significant cache
misses.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>