question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReGaHss: add SortByName() method to enum UserSharedObjects()

See original GitHub issue

Users can add system variables to the right side of the start page.

These system variables are sorted chronologically how they were added. Maybe it would be clearer to order them by name.

The easiest way could be by adding the SortByName() method to the enum UserSharedObjects(), that does not work at the moment.

See startpage.htm#L225

Thx to @Schello805 for this suggestion!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jens-mauscommented, Sep 24, 2018

@jp112sdl Thanks for the suggestion. However, the object UserSharedObjects() returns is formally no Enum, it returns an idarray and for this ReGaHss object type no SortByName() implementation exists yet. While I could of course add this sort function, this would require a new ReGaHss version to be published first. Thus, this could in fact take some time to be actually implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add extension methods to Enums - Stack Overflow
I use this sort of extension only if it is about the enum directly, like days of the week and extension methods IsWeekday(),...
Read more >
enum — Support for enumerations — Python 3.11.1 ...
Allows Enum members to have attributes without conflicting with member names. unique(). Enum class decorator that ensures only one name is bound to...
Read more >
How to create a new method for an enumeration - C# ...
Learn how to use extension methods to add functionality to an enum in C#. This example shows an extension method called Passing for...
Read more >
Attaching Values to Java Enum - Baeldung
As a result of adding fields and methods to our enum, we've changed its public interface. Therefore our code, which uses the core...
Read more >
Enum Types - Java™ Tutorials
In the Java programming language, you define an enum type by using the enum ... public EnumTest(Day day) { this.day = day; }...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found