in reply to Maintainability of hash-sorting code

Adding to what Abigail-II wrote ... (Welcome back, btw)

What you're talking about is output and the transformations necessary to output in the appropriate fashion. Ideally, I would make sure that you're not being destructive to the data. Abigail-II's solution is destructive, because you can potentially lose information. (I.e., the 6th order number.) This may or may not be important to you. Maybe you've pulled the data from a database and can play with it in memory. Maybe you're done with that 6th order number and don't care about it anymore. I don't know. Just be careful.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Maintainability of hash-sorting code