1 grub-mkconfig does not get it right when sorting "recent kernel first":
3 sort kernel versions correctly:
6 echo 'Loading Linux 3.0.8-1 ...'
7 echo 'Loading Linux 3.0.4-2 ...'
8 echo 'Loading Linux 3.0.13-1 ...'
9 echo 'Loading Linux 3.0.12-2 ...'
10 echo 'Loading Linux 2.6.38.8-1 ...'
13 echo 'Loading Linux 3.0.13-1 ...'
14 echo 'Loading Linux 3.0.12-2 ...'
15 echo 'Loading Linux 3.0.8-1 ...'
16 echo 'Loading Linux 3.0.4-2 ...'
17 echo 'Loading Linux 2.6.38.8-1 ...'
19 --- grub-1.99/util/grub-mkconfig_lib.in~ 2012-01-12 00:47:28.626740879 +0200
20 +++ grub-1.99/util/grub-mkconfig_lib.in 2012-01-12 00:53:49.554292436 +0200
25 - if (echo "$a" ; echo "$b") | sort -n | head -n 1 | grep -qx "$b" ; then
26 + if (echo "$a" ; echo "$b") | sort -V | head -n 1 | grep -qx "$b" ; then