in reply to alphanumeric comparision
I might have gotten some sense of the problem but I doubt. Could you try explaining again in complete sentences and/or readable pseudocode?