Ok, I need a little help sorting a regular non-associative array I have an array $products[0][1] where $products[0] holds a name of a product and $product[1] holds a rating for that product. I need to sort the products by rating and still have the product and the rating together. I figured out one way to do it with an array_multisort, but it only sort the ratings and left the products unchanged. Does anyone have any ideas? Thanks.