From: Gary Wright Date: 2007-03-18T10:24:11+09:00 Subject: Re: mixin classes (continuning from the last post) On Mar 17, 2007, at 8:55 PM, hurcan solter wrote: > well my sorting criteria something different from that.Consider this; Then you are going to have to implement Tsort over a different type of collection. Tsort uses the eql? method to compare nodes and I don't think you want to mess around with REXML's notion of equality. I think it would be better off iterating over all the nodes in the document and creating a new dependency graph based on your criteria and then applying Tsort to that new data structure instead of the REXML data structure. I'll admit to not looking too deep into your problem but I get the feeling that you are applying TSort to the wrong data structure. Gary Wright