summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-01 17:17:50 +0100
committerhut <hut@lavabit.com>2010-11-22 02:33:26 +0100
commit6a7c1b84604cb378b6e82ed616776db0a89f5dcb (patch)
tree2e031d4fb6ad0e3e9644fcd6001af8cf9b643cfc /ranger
parent72c70a2df45b957fee8c755e8bc953e4126dd2fb (diff)
downloadranger-6a7c1b84604cb378b6e82ed616776db0a89f5dcb.tar.gz
fsobject.directory: Fixed sorting by type
Diffstat (limited to 'ranger')
-rw-r--r--ranger/fsobject/directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 9bdb4caa..dcb4bf2c 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -78,7 +78,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 		'basename': sort_by_basename,
 		'size': lambda path: -path.size,
 		'mtime': lambda path: -(path.stat and path.stat.st_mtime or 1),
-		'type': lambda path: path.mimetype,
+		'type': lambda path: path.mimetype or '',
 	}
 
 	def __init__(self, path, **kw):
00 committer arg@mmvi <unknown> 2006-09-19 16:13:44 +0200 some simplifications to intro in dwm.h' href='/acidbong/suckless/dwm/commit/dwm.h?h=1.8&id=551d6bb23dd4772a1a53a99d8d823ada5de9c3b6'>551d6bb ^
e6cc223 ^
cbfc69e ^


886b208 ^

e6cc223 ^
551d6bb ^
1076f2b

b515765 ^
95e8d12 ^
8b59083 ^
7b5638f ^
7c2e3bb ^

1c2d673 ^

8fa47ac ^
080a38d ^
7b5638f ^
281f098 ^





14d05e7 ^



281f098 ^


b5159df ^
9955ddc ^
c47da14 ^
281f098 ^
c53980c ^
b5159df ^
8b59083 ^


bf35794 ^

b5159df ^
8b59083 ^
281f098 ^
8b59083 ^
b55bd70 ^


bf35794 ^


281f098 ^
8b59083 ^
b5159df ^
1076f2b
da2bbd3 ^
3399650 ^
1173723 ^
346bdea ^
438beea ^
a05beb6 ^
2e836ec ^
a05beb6 ^
9d73909 ^
346bdea ^
b355755 ^
1076f2b
72707c2 ^
15abade ^
bf35794 ^
7e597ae ^
1076f2b

281f098 ^


fee8df6 ^
d2d394e ^
281f098 ^

bf35794 ^
d800ec0 ^
7d7cde0 ^
bf35794 ^
d2d394e ^
bf35794 ^
14d05e7 ^
bf35794 ^
39677ec ^
439e15d ^
d2d394e ^
b4d53bf ^
281f098 ^






6092aa9 ^
d2d394e ^

281f098 ^
3399650 ^
d7e1708 ^
6b25d06 ^

281f098 ^


868159f ^
d7e1708 ^
dba2306 ^
6b25d06 ^

b9da4b0 ^
9e8b325 ^
281f098 ^



9e8b325 ^
dba2306 ^
6b25d06 ^
281f098 ^

d2d394e ^
868159f ^

29355bd ^
8b59083 ^
281f098 ^
868159f ^
281f098 ^
868159f ^
aa13727 ^

281f098 ^
868159f ^

281f098 ^


fee8df6 ^
6b25d06 ^
fee8df6 ^
868159f ^


d2d394e ^
fee8df6 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179