Serialize sorts as array instead of dictionary