|Think about Loose Coupling|
Re^2: Probelm with priority printing (hash or by an array)by Anonymous Monk
|on Nov 07, 2008 at 10:29 UTC||Need Help??|
Hi, Thanks for your suggestion. But when printing the results from the database it prints in the same order as it fetches. Also, I have two sets of diseases. Say: disease_1:
and another set of disease like:
Those two sets are distinguished based on the process they go for. there may be some disease which appears in both the sets.
The diseases are not the exact names but an example of it. The Query fetches different process that the disease has passed through. But I think that doesn't matter us much(!) here. The problem is I am having the same problem again that is ,the order of the disease is not in the order that I have got in the array but IT comes randomly as it fetches in the database. for example:
Note the XXX:disease is the way the disease is stored inthe database.
What I need to have is the exact order and priority number along with the exact names that I have stored in the array.
Thanks for your suggestions.