Jump to content

How do I keep caches on a list in the order in which I added them?

Followers 0

Recommended Posts

For my milestones bookmark list, I edited the names of the list entries to include the number of each find, so they appear in order. The catch is that they are in alphabetical order, and 1 comes before 5, so they would end up like this:

  • 1
  • 10
  • 100
  • 5
  • 50


My first fix was to include leading zeros to make them sort correctly:

  • 001
  • 005
  • 010
  • 050
  • 100


My improved fix was to include leading spaces instead of leading zeros. The sorting works the same, but the spaces don't appear in the final output:

  • [sp][sp]1
  • [sp][sp]5
  • [sp]10
  • [sp]50
  • 100
  • Helpful 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Followers 0
  • Create New...