Sort workspace arrays.