[Kodi 16.1 Jarvis] – Container.SetSortMethod(id) – gen.xml

SKIN – Confluence

I would like to press a key to change the Sort By on my movie list to DateAdded by adding the following line to my gen.xml file. Unfortunately this does not work.

Code:
<keymap>
    <global>
        <keyboard>
                         ...
            <space>Container.SetSortMethod(38)</space>
                         ...
        </keyboard>
    </global>
</keymap>

What I have tried

On Wiki it states:

  • Container.SetSortMethod(id) Change to the specified sort method. (For list of ID’s see List of sort methods below)

and the list of id’s I can find are:

There was a mention of Container.SetSortMethod(id) not working on this thread with support and a guide to valid id’s per Container (this was a few years ago)

The log shows that the action is correct but nothing happens to the Video list
13:47:14 T:10092 DEBUG: CInputManager::OnKey: eight (0xf038) pressed, action is Container.SetSortMethod(38)
13:47:15 T:10092 DEBUG: Keyboard: scancode: 0x09, sym: 0x0038, unicode: 0x0038, modifier: 0x0

I double checked what would the log report if it did exist
14:02:17 T:11808 ERROR: Keymapping error: no such action ‘container.test(27)’ defined

I checked the source code and I can see the enum type I’m using is correct but as I am not familiar with C++ I am unable to investigate further.

These methods do work in my gen.xml file

  • Container.SetSortDirection
  • Container.NextSortMethod

Could someone confirm is the Container.SetSortMethod(id) method deprecated or am I using the wrong id code? (I have tested other codes with no success)