Skip to content

Commit

Permalink
Try to fix Zulu index issues (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault authored Jan 23, 2024
1 parent ad0330c commit e376e4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Zulu.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import sttp.client3.quick._

import scala.math.Ordering.Implicits.seqOrdering

object Zulu {
final case class ZuluParams(
indexOs: String,
Expand Down Expand Up @@ -66,7 +68,7 @@ object Zulu {
json.arr
.toArray
.map(_.obj)
.map(a => a("id").num.toInt -> a)
.map(a => a("jdk_version").arr.toList.map(_.num.toInt) -> a)
.sortBy(_._1)
.iterator
.map(_._2)
Expand Down

0 comments on commit e376e4c

Please sign in to comment.