Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Adjust version-sort for XX.XX.XX format #132

Merged
merged 4 commits into from
May 24, 2019
Merged

Conversation

colleenmcginnis
Copy link
Contributor

version-sort.js is not working with numbers that have two digits in the middle number in the XX.XX.XX format:

image

This change should set us up for success if any of the three numbers are 1 or 2 digits by prepending single-digit numbers with 0 before building the num value.

@katydecorah I can't get one test to pass. I would also love your thoughts on this approach!

cc @friedbunny @captainbarbosa @riastrad

@katydecorah
Copy link
Contributor

@colleenmcginnis I ended up swapping out our sorting function for an npm module that will do that logic for us. I think we got it 😅

@colleenmcginnis
Copy link
Contributor Author

Works beautifully 💅

@colleenmcginnis colleenmcginnis merged commit 3ac20ef into master May 24, 2019
@colleenmcginnis colleenmcginnis deleted the fix-darn-numbers branch May 24, 2019 21:40
katydecorah pushed a commit that referenced this pull request May 30, 2019
* master:
  prepare 0.13.0
  adjust version-sort for XX.XX.XX format (#132)
katydecorah pushed a commit that referenced this pull request Jun 5, 2019
* master:
  add snapshot tests (#136)
  0.15.1
  Prepare 0.15.1
  0.15.0
  Prepare 0.15.0
  [search] adds segment tracking for queries and clicks (#140)
  [search] add ability to filter results (#138)
  increase modal zindex to prevent collision with topbar sticker (#139)
  0.14.0
  Prepare 0.14.0
  [PageLayout/TopbarSticker] increase zIndex (#134)
  [search] Introduce search modal (#133)
  prepare 0.13.0
  adjust version-sort for XX.XX.XX format (#132)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants