I recently converted optionDataSource for "static data" into value maps with the idea of making the code leaner and more easy to read. I used to have a certain order in that data, but now that I use a value map that order seems to have gone. Is this fixable?
So I had something like this to filter by dates:
And now I have this:
But it displays in order 2022, 2023, 2024.
So I had something like this to filter by dates:
Code:
optionDataSource: isc.DataSource.create({ cacheData: [ { code: '2024', name: '2024' }, { code: '2023', name: '2023' }, { code: '2022', name: '2022' } ], clientOnly: true })
Code:
valueMap: { 2024: 2024, 2023: 2023, 2022: 2022 }
Comment