sorting elements before creating SpM