Sorting Event Markets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PhilB2809
    Junior Member
    • May 2009
    • 3

    #1

    Sorting Event Markets

    Hi there, Im new to VB so please be gentle with me......

    I have got my various API calls working and have generated a treeview with all events available and then get it to get the event information for each type of event. As you can see from the screenshot though it looks messy as it simple shows all events in that event type. Is there a simple way of sorting say the "Soccer" event into first country, then division then finally date ????

    Any advice will be greatly received

    thanks

    Phil
    Attached Files
  • Franklin1
    Junior Member
    • Mar 2012
    • 91

    #2
    Use Linq - something like:

    Soccer.orderBy(function(c) c.country).thenBy(function(d) d.division).thenBy(function(e) e.date)

    I don't think you actually need to use different variables (d and e) in the lambda expression.

    Comment

    • betdynamics
      Junior Member
      • Sep 2010
      • 534

      #3
      Why not use the navigation data instead?

      I think it is specifically designed to mimic the left hand menu on the Betfair web site.

      Comment

      Working...
      X