From e98f0934c48b58b9ccc70406e385e527486b7703 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Sun, 26 Mar 2006 09:16:13 +0000 Subject: [PATCH] sort devices alphabetically by default. * src/GParted_Core.cc: sort devices alphabetically by default. --- ChangeLog | 4 ++++ src/GParted_Core.cc | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 110dad48..433b97b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-03-26 Bart Hakvoort + + * src/GParted_Core.cc: sort devices alphabetically by default. + 2006-03-25 Bart Hakvoort * src/DrawingAreaVisualDisk.cc: prevented a possible segfault at diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index aefb4b0a..ed1f2c00 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -140,8 +140,9 @@ void GParted_Core::get_devices( std::vector & devices ) lp_device = ped_device_get_next( lp_device ) ; } close_device_and_disk() ; - } + std::sort( device_paths .begin(), device_paths .end() ) ; + } for ( unsigned int t = 0 ; t < device_paths .size() ; t++ ) {