Skip to content

Commit 4b0c456

Browse files
committed
Fix issue RedisInsight#3700: zset score sort not correctly
1 parent 505de1e commit 4b0c456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/models/key-models/sortedsetkey.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ QVariant SortedSetKeyModel::getData(int rowIndex, int dataRole)
3737
if (dataRole == Roles::Value)
3838
return row.first;
3939
else if (dataRole ==Roles::Score)
40-
return row.second;
40+
return row.second.toDouble();
4141
else if (dataRole == Roles::RowNumber)
4242
return rowIndex+1;
4343

0 commit comments

Comments
 (0)