# Sortable and Pageable Table Library

**URL:** <https://discourse.elm-lang.org/t/sortable-and-pageable-table-library/3416>\
**Category:** Request Feedback\
**Created:** [March 29, 2019, 10:30pm UTC](https://discourse.elm-lang.org/t/sortable-and-pageable-table-library/3416 "2019-03-29T22:30:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enkidatron](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/enkidatron/32/1976_2.png) [@Enkidatron](https://discourse.elm-lang.org/u/Enkidatron)\
**Post date:** [March 29, 2019, 10:30pm UTC](https://discourse.elm-lang.org/t/sortable-and-pageable-table-library/3416/1 "2019-03-29T22:30:21Z")

</div>

I typically use the [elm-sortable-table](https://package.elm-lang.org/packages/NoRedInk/elm-sortable-table/latest/) library, but I find myself in a situation where I need to paginate the data after it is sorted. Because the sorting happens in the libraries `view` function, there is no way to winnow the list down to the correct page while using the normal library. I have searched and cannot find an existing library that does this. There is the [jschomay/Paginate](https://package.elm-lang.org/packages/jschomay/elm-paginate/latest/Paginate) library, which looks useful, except I need to do sorting and then pagination, not pagination and then sorting.

The two options that I see are two either reimplement the sortable-table functionality in my app and then implement the pagination behavior, or else to create a new library that does both sorting and pagination. What do people think of a library that would extend the functionality of the standard elm-sortable-table library with pagination?

---

<div class="post-metadata">

**Author:** ![francescortiz](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/francescortiz/32/1721_2.png) [@francescortiz](https://discourse.elm-lang.org/u/francescortiz)\
**Post date:** [March 30, 2019, 7:35am UTC](https://discourse.elm-lang.org/t/sortable-and-pageable-table-library/3416/2 "2019-03-30T07:35:51Z")

</div>

Extending functionality is always welcome. As I see it, always start doing a pull request or opening an issue on an existing project. Afterwards, if you do create a library, show it to the community before pushing to the package repository. I would also recommend showing in the README why this package was needed showing that you tried to help an existing package or why it didn’t make sense to help the existing project and that creating something new was the only viable solution.

In my case, only one out of three potential new packages actually made sense.

---

<div class="post-metadata">

**Author:** ![popara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/popara/32/719_2.png) [@popara](https://discourse.elm-lang.org/u/popara)\
**Post date:** [April 3, 2019, 10:37pm UTC](https://discourse.elm-lang.org/t/sortable-and-pageable-table-library/3416/3 "2019-04-03T22:37:44Z")

</div>

@Enkidatron I would suggest that you write it your self, consult published code, but ulitmately fit it to your needs.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [April 13, 2019, 10:37pm UTC](https://discourse.elm-lang.org/t/sortable-and-pageable-table-library/3416/4 "2019-04-13T22:37:45Z")

</div>

Closed on April 13, 2019, 10:37pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
