sorted margins