Skip to Main Content
Builder.io Ideas
Created by Julius Dorfman
Created on Jun 28, 2023

Allow in-query case-insensitivity sorting option w/ Content API

Origin: Adam Innes 50000feet.com



Clients concern is performance having to iterate over each pagination of 100 results and then sort.


Currently: builder.getAll returns data and the output is: ["AB", "Aa"] when the desired output is ["Aa", "AB"]



Example Usage:

const data = await builder.getAll('logo', { 
limit: 10
options: {
sort: {
data: { company: 1 },
***caseSensitivity: false***
},
noTargeting: true,
}
});
Output: ["Aa", "AB"]



Origin: https://forum.builder.io/t/case-insensitive-sort/3624

ZenDesk Link: https://builderio.zendesk.com/agent/tickets/5230



  • Attach files