Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] Masternodes Tab, sort using Address column #831

Closed
bertlebbert opened this issue May 29, 2016 · 7 comments
Closed

[GUI] Masternodes Tab, sort using Address column #831

bertlebbert opened this issue May 29, 2016 · 7 comments

Comments

@bertlebbert
Copy link

Under the new Masternodes Tab, sorting rows '1rst to last' or 'last to 1rst' by clicking column headings works fine on all but the 'Address' column.

@akijuh
Copy link

akijuh commented May 29, 2016

Works for me. Win7 64bit.

Edit: no its not work right, its sorting but not right order.

@crowning-
Copy link

Works perfectly on Win10 64bit and Ubuntu 16.04.
If you're on testnet, do you care to share your masternode.conf?

@bertlebbert
Copy link
Author

bertlebbert commented Jun 7, 2016

Actually I noticed this problem under 'All Masternodes' tab,
not sure about 'My Masternodes' tab. I'm on Win7(64 bit):

image 005

@bertlebbert
Copy link
Author

Haha, that screenshot above is bad example, this screen is better example:
Appears to sort on first digit, such that 216.45.55.146:19999 is < 22.2.250:19999
(not so much of an issue really)

image 006

@crowning-
Copy link

An IP-address, even when almost always called otherwise, is a string, NOT a number.

And a string (=alphabetical) sort means "216.45" < "23.22.".

Works as designed.

@bertlebbert
Copy link
Author

As I say, really not much of an issue - just kinda looks odd... I'll close this then?

@UdjinM6
Copy link

UdjinM6 commented Jun 7, 2016

Ah, now I see what you meant by "wrong order :) yep, it's just a string and works the same as in Peers tab for example so even if it's a bit confusing it's still consistent :D

I guess it's ok to have it as it is. We can probably implement a more sophisticated sorting for Address column later if there would be many complaints. This however would require to replace current (naive and straightforward) implementation which uses standard widgets with custom model/view implementation and I'm not sure if it really worth it.

Same applies to Active column btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants