ReGaHss: add SortByName() method to enum UserSharedObjects()
See original GitHub issueUsers 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.
Thx to @Schello805 for this suggestion!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
see https://github.com/jens-maus/RaspberryMatic/commit/8003adba4f652d51f6ed53aca732eee55f1d7428
@jp112sdl Thanks for the suggestion. However, the object UserSharedObjects() returns is formally no Enum, it returns an
idarray
and for this ReGaHss object type noSortByName()
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.