Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:19:58+00:00 2026-06-05T01:19:58+00:00

Simple public class TimeLine { public String Name {get;set} public List<Milestone> MilesStones {get;set} }

  • 0

Simple

public class TimeLine
{
  public String Name {get;set}
  public List<Milestone> MilesStones {get;set}
}

public class Milestone
{
  public String Name {get;set}
  public DateTime Time {get;set}
}

I tried:
from t in DataAccess.TimelineCollection.OrderBy(c=>c.MilesStones.OrderBy(z=>z.MilestoneDate)) select t; but got an error that “At least one object must implement IComparable.”

I need to order TimeLine by Milestone.Time. First project in a list will be the one that has eraliest Time property in Milestone collection.

Need help with link.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:19:59+00:00Added an answer on June 5, 2026 at 1:19 am

    It sounds like you might want

    var query = DataAccess.TimelineCollection
                          .OrderBy(t => t.MileStones.Min(m => m.Time));
    

    In other words, for each TimeLine, find the earliest milestone, and use that for ordering.

    Of course if the milestones are in order, you could use:

    var query = DataAccess.TimelineCollection
                          .OrderBy(t => t.MileStones.First().Time);
    

    Both of these will fail if any TimeLine has no milestones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple class public class Group { public Int16 ID { get; private set; }
I've a simple class [Serializable] public class MyClass { public String FirstName { get;
In that simple case: public class Person { public int Id {get;set;} public int
Simple example: public class Person { String name; } public class VIP extends Person
I have a simple model public class OneModel { public string Email { get;
Given a simple class: public class Person { public string FirstName; public string LastName;
I have simple type Question : public class Question { public string[] Tags {
I have a simple person class: package simpleApp.entities; public class Person { private String
public class simple { public static void main(String[] args) { try { System.out.print(hello );
Here is the simple inheritance public class BaseClass { public string Draw() { return

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.