Skip to content

Correct Sorting of Columns with Partial Numeric Values #9

Open

Description

@fehmicansaglam

Description

The current column sorting implementation in esctl may not correctly handle cases where column values include partial numbers. This feature request aims to enhance the sorting functionality to handle such scenarios correctly. Specifically, it should sort the columns in a natural order that considers the numeric portion within the values.

Motivation

Sorting columns with partial numeric values is essential for accurate and intuitive ordering of data. The current sorting mechanism may treat the values as plain text and result in incorrect sorting. By enhancing the sorting logic to recognize the numeric portions within the values, esctl can provide more meaningful and expected sorting results.

Additional Context

Consider a scenario where column values represent node names, such as "cluster-2-data-01" and "cluster-10-data-01". The existing sorting implementation may treat these values as plain text and sort them alphabetically, resulting in "cluster-10-data-01" coming before "cluster-2-data-01". This feature request aims to introduce a sorting algorithm that considers the numeric portion within the values, resulting in correct sorting order.

By addressing this issue, esctl can provide improved usability and a more natural sorting experience when working with columns that contain partial numeric values.

Activity

  1. added 2 commits that reference this issue on Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions