Loupe/src
Christopher Davis 5f7aa595db file_model: Use binary search to find index
Binary search is a fast method to sort for an item within
a sorted list. We have a sorted list, so we can take advantage
of binary search instead of having a linear traversal through
the list.

Because binary search requires a sorted list, we need to use
the same logic for sorting and searching. Here we factor out
the filename comparison logic into `util::compare_by_name()`.
In the future we may want to have a module for sorting algorithm
logic and checking what sorting algortihm Nautilus uses.
2022-07-14 15:25:03 -04:00
..
widgets image_view: Adjust model index name 2022-07-14 13:30:38 -04:00
application.rs application: Remove gtk::Settings 2022-02-04 15:42:11 -08:00
config.rs.in Initial Commit 2020-12-26 02:18:23 -08:00
file_model.rs file_model: Use binary search to find index 2022-07-14 15:25:03 -04:00
main.rs general: Use a custom ListModel for file tracking 2022-02-04 16:25:44 -08:00
meson.build widgets: Rework image_view with AdwCarousel, add ImagePage 2022-04-20 13:12:45 -07:00
thumbnail.rs thumbnail: Remove ParentType 2022-02-04 15:44:42 -08:00
util.rs file_model: Use binary search to find index 2022-07-14 15:25:03 -04:00
window.rs window: Remove unecessary String cast in pick_file() 2022-06-29 20:10:37 -04:00