連想配列の配列をソートしたい $users = array( array( 'id' => 1, 'username' => 'katty0324', 'following' => 191, 'follower' => 612 ), array( 'id' => 2, 'username' => 'yutomukoyama', 'following' => 947, 'follower' => 1840 ), array( 'id' => 3, 'username' => 't_ishiyama', 'following' => 560, 'follower' => 746 ), ); こういうユーザー一覧みたいな配列をソートしたくなることがありますよね。データベースから取り出した直後の状態っていうのはだいたいこんな感じですし。たとえばユーザーID順であったり、フォロワー数順であったり。