Here is the scenario, I have a database and I need data that is different from four tables to display in a list. I was having trouble getting the queries to join in a way that would give the results that I needed in the right order and format so I did a bunch of queries and pushed the results to and array. So now I have this array and it works great so far.
To visualize this I have the data listed in table and I need to sort the table based on the heading.
What I need to do next is some how sort the array by a specific value.
For example I have the array that contains a value “type” I want to search the array for the specific “types” and then sort the array based on that. So if the “type” column contains items such as “file” , “link” or “quiz” it would sort alphabetically.
Is this possible? Or should I be thinking of this in a different way?
Can anyone point me in the right direction?
SELECT column from table WHERE column='something' ORDER BY value- or evenLIKEin_array()andksort(),sort(),rsort()etc. - pretty broad though.