Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Column Order changes when Sorting #145

Open
@mklauber

Description

@mklauber

I'm having a strange issue. Essentially, whenever I sort a column, the order of the columns changes. I've cut my app down to the the simplest code I can and I still get this behavior. Am I missing something?

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv='Content-type' content='text/html; charset=utf-8'>
    <title>Basic Example with External JSX</title>
    <style>
        table: { width:100%;}
    </style>
  </head>

  <body id='body'>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.12.2/JSXTransformer.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react-with-addons.js"></script>
    <script src="reactable.js"></script>
    <script type="text/jsx">
        var Table = Reactable.Table;
React.render(
    <Table className="table" sortable={true} data={[
        { Name: 'Griffin Smith', Age: 18 },
        { Age: 23,  Name: 'Lee Salminen' },
        { Age: 28, Position: 'Developer' },
    ]} />,
    document.getElementById('body')
);
    </script>

  </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions