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 9272303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:50:34+00:00 2026-06-18T15:50:34+00:00

EDIT: It’s actually an array of strings. I think if I convert to integer

  • 0

EDIT: It’s actually an array of strings. I think if I convert to integer before sorting it should work…

EDIT 2: I’ve got the array converting to Int so I can sort by Int, now I just need to figure out how to make it work with the one actual string in the array.

Dim test As IList(Of Integer) = etaTimeSorted.ConvertAll(Function(str) Int32.Parse(str))

How can I sort an array of 24 hour times? When I sort them they are actually just numbers (0945 as opposed to 09:45). I’m using vb.net sort() method:

array.sort()

And it’s sorting like this:

0001
0010
0100
1000
0102
1100
0112
1130

This is driving me nuts. I feel like I should have found the answer to my question on Google a long time ago. I thought maybe one of the sort overloads would be useful, but it doesn’t look that way.

  • 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-18T15:50:35+00:00Added an answer on June 18, 2026 at 3:50 pm
    etaTimeIntSort = etaTimeSorted.ConvertAll(Function(str) Int32.Parse(str))
    etaTimeIntSort.Sort()
    etaTimeSorted = etaTimeIntSort.ConvertAll(Function(int) Convert.ToString(int))
    

    Converted the array to int, sorted, then converted back to string so I could insert my “Blank” item.

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

Sidebar

Related Questions

EDIT: Link should work now, sorry for the trouble I have a text file
EDIT: Sorry, I should've searched more before I asked, because I've found a solution
EDIT Before you got excited see important edits in the end and if you're
EDIT: Parsed the array completely (it contained unparsed JSON!) array(22) { [0]=> array(4) {
Edit: hello has been deleted. So, hello. By reaching an URL, I should get
Edit: I think the WM_CREATE message isn't sent during the creation of child windows
EDIT : (SOLVED) actually it probably was raised BECAUSE OF an infinite loop I
Edit I am having an XSLT to convert my xml into html format(I dont
Edit - please see bottom. I've got a primefaces calendar component on my page.
EDIT: After re-reading my post I think I am being a little bit unclear

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.