Skip to main content
All CollectionsComponents
Understanding Sorting Issues on New Table and Data Grid Collections in Glide
Understanding Sorting Issues on New Table and Data Grid Collections in Glide

This article explains sorting and grouping on table and data grid collection.

Updated this week

Users often need to sort information into various collections when managing data in Glide. However, some discrepancies may arise when working with the New Table collection, specifically concerning sorting functionality.

Sorting Behavior in New Table Collections

If you've encountered issues with sorting in your New Table collections, you're not alone. The sorting on New Table collections doesn't function in the same way as it does in other collections, and this is by design. In the background, the New Table collection operates similar to a Glide Big Table, even if it interfaces with various other data sources. This unique behavior underlies the differences in sorting operations compared to other collection types like Glide Tables or Google Sheets.

Why is This the Expected Behavior?

Glide Big Tables are optimized for handling large datasets efficiently. These tables prioritize fast read and write operations, ensuring that your apps remain responsive and performant, even with substantial data volumes. However, this optimization comes at the cost of some functionalities, such as sorting, that operate differently compared to traditional tables.

Suggested Workarounds

Given the inherent behavior of New Table collections, here are some workarounds you might consider to achieve your desired sorting capabilities:

  1. Switch to Another Collection Type: If sorting is a critical aspect of your app, consider using other types of collections supported by Glide. These collections offer more traditional sorting functionalities.

  2. Implement Sorting in Data Source: Depending on your data source, you might be able to implement sorting directly within it. For example, if you're using Google Sheets, you can utilize Google Sheets' built-in sorting features to pre-sort your data before Glide fetches it.

  3. Custom Sorting Logic: If you are bound to using New Table due to other functionalities it provides, consider implementing custom sorting logic within your app. This might require additional configurations and user interactions but can still achieve the desired outcome.

Understanding why sorting behaves differently in New Table collections helps in streamlining your workflow and making informed decisions about which collection type best suits your needs. While the New Table collection may not align with traditional sorting expectations, its performance optimizations offer significant benefits for handling large datasets efficiently.

For more detailed guidance on managing data and optimizing functionalities in Glide, explore our support resources or reach out to our community forums for assistance.

Did this answer your question?