Sort based on dependencies. Refs #9042, #8982.
Sort based on dependencies. Refs #9042, #8982.

This nicely puts milestones after their tasks.

This turned up a problem with dependency representation.  When we did:

{{{
s = '1, 2, 3'
l = s.split(',')
}}}

l ended up being ['1', ' 2', ' 3'] so "'2' in l" was false.

So now we strip white space from pred and succ ticket IDs.

Also, Trac milestones don't have successors but an empty list simplifies
other code.

git-svn-id: 2159781fc7c14c6bdd1f7e265daf7a25099c31e7@10689 7322e99d-02ea-0310-aa39-e9a107903beb

trac-hacks/trac-jsGantt,trac-hacks/trac-jsGantt,trac-hacks/trac-jsGantt