This function accepts `uinewFilter` integer parameter (1 shifted to left 1-3 and 9-12 times). It means that if it is possible to write an F4SE plugin that adds a function for sorting by additional fields and using it here then additional sorting "tabs" can be added to a player's inventory. It seems like Vertibird Jump already added a function to BGSCodeObj. However, this plugin is modifying a memory pattern of the F4 via F4SE (source code). I have experience working with assembly and c++ but I do not know how to use the debugger for finding such memory modifications for F4SE. It seems like each pattern is an actual opcode.