Ordered by end date so that we can look up today and see what are the most pressing things to do before it’s to late for this year
practice,plant,endM,endD,startM,startD
harvest root,carrot,1,28,6,1
prune,cherries,2,1,1,1
sew seeds,carrot,9,7,3,21
above, the three entries are ordered ascending by endM,endD
Because the first one happens during the new year, it should be at the end of the list.
Can you suggest a modification to attain this goal?
the current query SQL:
SELECT DISTINCT “annual_cultivation_dates_view”.“end_month”, “annual_cultivation_dates_view”.“end_day”, “annual_cultivation_dates_view”.“practice”, “annual_cultivation_dates_view”.“latin_name”, “species”.“Common_name”, “annual_cultivation_dates_view”.“detail”, “plot_plants”.“plot”, “plot_plants”.“sited”, “annual_cultivation_dates_view”.“start_month”, “annual_cultivation_dates_view”.“start_day” FROM “plot_plants”, “Plot”, “annual_cultivation_dates_view”, “species” WHERE “plot_plants”.“plot” = “Plot”.“Plot” AND “annual_cultivation_dates_view”.“latin_name” = “plot_plants”.“latin_name” AND “species”.“Latin_name” = “annual_cultivation_dates_view”.“latin_name” AND “plot_plants”.“sited” > ‘0’ ORDER BY “annual_cultivation_dates_view”.“end_month” ASC, “annual_cultivation_dates_view”.“end_day” ASC, “annual_cultivation_dates_view”.“practice” ASC, “annual_cultivation_dates_view”.“latin_name” ASC, “annual_cultivation_dates_view”.“start_month” ASC