Page MenuHomePhabricator

[explorer] Fix table sorting issues
ClosedPublic

Authored by johnkuney on Jan 31 2023, 20:19.

Details

Reviewers
Mengerian
Group Reviewers
Restricted Project
Commits
rABCdf34c0f5aa58: [explorer] Fix table sorting issues
Summary

Sorting by column values on the block and address page tables was not working properly for some columns.
The issue was if there was an added suffix like "XEC" or "kB" for example it was breaking the plugin's sorting.
I modified some of the columns rendering functions to use a data attribute instead for displaying the suffixes

Test Plan

run the app and see if sorting works better

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Mengerian requested changes to this revision.Feb 3 2023, 17:00
Mengerian added a subscriber: Mengerian.

Tested it out, sorting is still broken for me

For example address try address ecash:qqm84rstn320x567geqhpu33xlus9vvv458t39tcau and sort by size.... it sorts "1.08 kB" as smaller than "225B"

This revision now requires changes to proceed.Feb 3 2023, 17:00

Adding a type field to the file size columns so they sort properly

Good call, should be good now

This revision is now accepted and ready to land.Feb 3 2023, 19:55
This revision was automatically updated to reflect the committed changes.