Skip to content

Commit

Permalink
Fix row sorting in doc tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Sep 11, 2024
1 parent 0397278 commit 8944bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/util/doc/DocValue.scala
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ object DocValue:
.sortBy { case (row, cols) =>
cols
.filter((k, _) => k._2.prop == RdfUtil.hasDocWeight)
.map((_, v) => v.getSortKey)
.map((_, v) => v.asInstanceOf[DocValue.Literal].value.getInt)
.headOption
.getOrElse(row)
.getOrElse(1000)
}
.foreach { case (row, cols) =>
sb.append(s"| **$row** ")
Expand Down

0 comments on commit 8944bef

Please sign in to comment.