Sort metadata boxes