 								data: collection[shortname]
 						return results;
 
+					# use ascii
+					for shortname, value of RocketChat.emoji.asciiList
+						if results.length > 10
+							break
+
+						if shortname.startsWith(key)
+							results.push
+								_id: shortname
+								data: [value]
+
+					# use shortnames
 					for shortname, data of collection
-						if shortname.indexOf(filter) > -1
+						if results.length > 10
+							break
+
+						if shortname.startsWith(key)
 							results.push
 								_id: shortname
 								data: data
 
-						if results.length > 10
-							break
-
-					if filter.length >= 3
-						results.sort (a, b) ->
-							a.length > b.length
+					#if filter.length >= 3
+					results.sort (a, b) ->
+						a._id.length - b._id.length
 
 					return results
 

				getInput: self.getInput
				getFilter: (collection, filter) ->
					results = []

					# show common used emojis, when use input a single ':'
					if filter == ''
						commonEmojis = [
					            ':laughing:',
					            ':smiley:',
					            ':sunglasses:',
					            ':wink:',
					            ':innocent:',


	@autorun ->
		template.channelSubscription = template.subscribe 'channelAutocomplete', template.channelFilter.get()
