mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 05:36:13 +08:00 
			
		
		
		
	Merge pull request #2786 from luckman212/luckman212-tagsort-1
sorted tags on dashboard
This commit is contained in:
		@@ -143,7 +143,7 @@ class Monitor extends BeanModel {
 | 
			
		||||
     * @returns {Promise<LooseObject<any>[]>}
 | 
			
		||||
     */
 | 
			
		||||
    async getTags() {
 | 
			
		||||
        return await R.getAll("SELECT mt.*, tag.name, tag.color FROM monitor_tag mt JOIN tag ON mt.tag_id = tag.id WHERE mt.monitor_id = ?", [ this.id ]);
 | 
			
		||||
        return await R.getAll("SELECT mt.*, tag.name, tag.color FROM monitor_tag mt JOIN tag ON mt.tag_id = tag.id WHERE mt.monitor_id = ? ORDER BY tag.name", [ this.id ]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user