text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_advanced_sort_string_tab.c                      :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: lgavalda <lgavalda@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/07/24 12:06:17 by lgavalda          #+#    #+#             */
  /*   Updated: 2019/07/24 12:06:27 by lgavalda         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  void	ft_advanced_sort_string_tab(char **tab, int (*cmp)(char *, char *))
  {
  	int		i;
  	char	*buffer;
  
  	i = 0;
  	while (tab[i + 1])
  	{
  		while (cmp(tab[i], tab[i + 1]) > 0)
  		{
  			buffer = tab[i];
  			tab[i] = tab[i + 1];
  			tab[i + 1] = buffer;
  			i = 0;
  		}
  		i++;
  	}
  }
  