diff --git a/sanityv3/schemas/documents/magazine.ts b/sanityv3/schemas/documents/magazine.ts index e11a5da26..7a3c7bf00 100644 --- a/sanityv3/schemas/documents/magazine.ts +++ b/sanityv3/schemas/documents/magazine.ts @@ -180,9 +180,7 @@ export default { { title: 'Title ', name: 'titleAsc', - // Yes, this will add a warning in the console, but we still need the [0] since it's a rich text editor - // Might be worth to look into if it is a better way of sorting rich text editors - by: [{ field: 'title[0].children[0].text', direction: 'asc' }], + by: [{ field: 'title', direction: 'asc' }], }, ], preview: { diff --git a/sanityv3/schemas/documents/page.ts b/sanityv3/schemas/documents/page.ts index 1b9446b4b..8bb4de1c7 100644 --- a/sanityv3/schemas/documents/page.ts +++ b/sanityv3/schemas/documents/page.ts @@ -90,9 +90,7 @@ export default { { title: 'Title ', name: 'titleAsc', - // Yes, this will add a warning in the console, but we still need the [0] since it's a rich text editor - // Might be worth to look into if it is a better way of sorting rich text editors - by: [{ field: 'title[0].children[0].text', direction: 'asc' }], + by: [{ field: 'title', direction: 'asc' }], }, ], preview: {