Results 1 to 7 of 7

Thread: Highly confused on how to order by objects inside an object

Threaded View

  1. #3

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Highly confused on how to order by objects inside an object

    Thanks.
    Not sure how would I sort by a property of the sessions.

    Name:  Clipboard01.jpg
Views: 758
Size:  32.2 KB

    What I currently did was to do a for each to select the ScheduleScreen that I'm interested and then on a new clear ScheduleScreenSession do an orderby
    so:
    Code:
    Dim scrscd as new  List (Of ScheduleScreen)
    '' add just the one anticipated screen
    ses = scrscd(0).Sessions.OrderBy((Function(o) o.SessionStartString).ToList()
    That seems to work.
    Last edited by sapator; Sep 7th, 2023 at 04:34 AM. Reason: corrected language
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width