CREATE TABLE Things (thing_id INT, organization_id INT, Type_of_Thing_Code CHAR, service_type_code CHAR, service_details VARCHAR)
CREATE TABLE Timed_Status_of_Things (thing_id INT, Date_and_Date DATETIME, Status_of_Thing_Code CHAR)
CREATE TABLE Residents (resident_id INT, property_id INT, date_moved_in DATETIME, date_moved_out DATETIME, other_details VARCHAR)
CREATE TABLE Customer_Events (Customer_Event_ID INT, customer_id INT, date_moved_in DATETIME, property_id INT, resident_id INT, thing_id INT)
CREATE TABLE Customer_Event_Notes (Customer_Event_Note_ID INT, Customer_Event_ID INT, service_type_code CHAR, resident_id INT, property_id INT, date_moved_in DATETIME)
CREATE TABLE Organizations (organization_id INT, parent_organization_id INT, organization_details VARCHAR)
CREATE TABLE Services (service_id INT, organization_id INT, service_type_code CHAR, service_details VARCHAR)
CREATE TABLE Properties (property_id INT, property_type_code CHAR, property_address VARCHAR, other_details VARCHAR)
CREATE TABLE Residents_Services (resident_id INT, service_id INT, date_moved_in DATETIME, property_id INT, date_requested DATETIME, date_provided DATETIME, other_details VARCHAR)
CREATE TABLE Customers (customer_id INT, customer_details VARCHAR)
CREATE TABLE Timed_Locations_of_Things (thing_id INT, Date_and_Time DATETIME, Location_Code CHAR)

Give me a stacked bar chart to show how many things in different types of each thing, and the details of the organization that owns it, could you order bars in ascending order?
SELECT organization_details, COUNT(organization_details) FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id GROUP BY Type_of_Thing_Code, organization_details ORDER BY organization_details
SELECT "organization_details", COUNT("organization_details") FROM "Things" AS "T1" JOIN "Organizations" AS "T2" ON "T1"."organization_id" = "T2"."organization_id" GROUP BY "Type_of_Thing_Code", "organization_details" ORDER BY "organization_details" NULLS FIRST