Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] ORDER BY tag values #3954

Closed
beckettsean opened this issue Sep 2, 2015 · 49 comments
Closed

[feature request] ORDER BY tag values #3954

beckettsean opened this issue Sep 2, 2015 · 49 comments

Comments

@beckettsean
Copy link
Contributor

No description provided.

@Jhors2
Copy link

Jhors2 commented Sep 2, 2015

+1, would love this. Would also like to pass more than 1 tag to the order by operation so they are alpha sorted first by tag1 then by tag2, etc.

@muratcorlu
Copy link

Will that issue meet our needs like that?:

select count(values) from events group by event_type order by count desc

@beckettsean
Copy link
Contributor Author

@muratcorlu no, that is a separate request. This is only for ordering by tag values, not by function return values.

@timgriffiths
Copy link

+1

@jgrobelny-dev
Copy link

+1
plus order by <field>

@dstreppa
Copy link

very useful
+1

@envintus
Copy link

👍

@martinschuberts
Copy link

Hi influxers,
any update on this issue? Anything planned?

@gerrickw
Copy link

gerrickw commented Feb 1, 2017

Any workaround for this? For some reason influxdb decides tag values return should be sorted 100,101,102,...,198,199,001,002,003. As grafana writes whatever is returned by the database I have a large drop down menu of template values with a whacky sort that makes people confused how it even determined that is the correct sort.

@haidaraM
Copy link

Any update ?

@dominic-miglar
Copy link

+1

1 similar comment
@tabeyti
Copy link

tabeyti commented Nov 30, 2017

+1

@JamesGalt
Copy link

JamesGalt commented Jan 26, 2018

Hi, Would be great especially if we use the tag to avoid overriding when 2 points with same tags values and same timestamp are written.
Any workaround?
Thanks

@NateZimmer
Copy link

So if someone is using influxDB to track device diagnostics naturally one would wish to sort by value. For example, if one is investigating device resets, one would wish to sort a list and prioritize the devices that are resetting the most. Without this... metrics that target problematic units are nearly impossible.

@jcsdatera
Copy link

+1

1 similar comment
@dannybeeckman
Copy link

+1

@JulienChampseix
Copy link

@beckettsean we are now in August 2018 (issue created in 2015) any update on it or plan in influx roadmap ? (order by part capability is really a strong functionnality missing to influx)

@dgnorton dgnorton added the 1.x label Jan 7, 2019
@umatomba
Copy link

we are now in Mar 2019 :) I will take clickhouse soon

@laudukang
Copy link

+1

2019

@imohidul
Copy link

what are you doing guys please do something about this matter, irritating sort system group by tag it is 2019 now

@debmalyapan53
Copy link

+1

@matheusnicolas
Copy link

+1

2 similar comments
@GersonSales
Copy link

+1

@RamonSalem
Copy link

+1

@cybermax
Copy link

cybermax commented Apr 14, 2019

+1. 2019, order by field value is a must.

@4nte
Copy link

4nte commented Apr 30, 2019

+1, super basic feature for a database

@jkalnik
Copy link

jkalnik commented Jun 26, 2019

+1, we hit that problem too. It would be very nice to have this function.

@slachtar
Copy link

+1, any announcement on this issue?

@fionera
Copy link

fionera commented Jul 31, 2019

+1, please <3

@windkh
Copy link

windkh commented Aug 7, 2019

+1000

@ahgit101
Copy link

ahgit101 commented Sep 5, 2019

Any update in this issue. Even a statement to say if it's in scope or there are no plans for this?

@wurmrobert
Copy link

+1

6 similar comments
@shkarimpour
Copy link

+1

@chopchopjames
Copy link

+1

@thomas-tf
Copy link

+1

@valerioformato
Copy link

+1

@Vebryn
Copy link

Vebryn commented Feb 21, 2020

+1

@eRudy
Copy link

eRudy commented Feb 28, 2020

+1

@ouinouin
Copy link

ouinouin commented Apr 6, 2020

any plan to add this feature ?

@sanderson
Copy link
Contributor

Support for sorting by tags will likely not be added to InfluxQL, but it is already supported in Flux.

@VytasMule
Copy link

+1

@gabzim
Copy link

gabzim commented Jan 3, 2021

Support for sorting by tags will likely not be added to InfluxQL, but it is already supported in Flux.

I would buy this, the problem is that flux is orders of magnitude slower than influxql.

@Styx13
Copy link

Styx13 commented Nov 2, 2021

+1

@gabzim
Copy link

gabzim commented Nov 5, 2021

Support for sorting by tags will likely not be added to InfluxQL, but it is already supported in Flux.

I would buy this, the problem is that flux is orders of magnitude slower than influxql.

I was on influx 1.x, I've noticed that Influx 2.x has much better performance for flux, so I take that back.

@AlexHeylin
Copy link

+1

1 similar comment
@riteshs-cashify
Copy link

+1

@rijenkii
Copy link

Support for sorting by tags will likely not be added to InfluxQL, but it is already supported in Flux.

What about influx 3.0, where flux is basically deprecated?

@pauldix
Copy link
Member

pauldix commented Feb 27, 2024

@rijenkii InfluxDB 3.0 has a fully featured SQL query engine so this is supported in that language. InfluxQL is also supported, but doesn't support sorting by tags.

@pauldix pauldix closed this as completed Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests